package com.boco.pciv.core.entity;

import java.io.Serializable;

public class CriteriaItem implements Serializable {
    private CriteriaEnum type;
    private String key;
    private Object val;

    public CriteriaItem() {
    }

    public CriteriaItem(String key, Object val) {
        this.type= CriteriaEnum.Equals;
        this.key = key;
        this.val = val;
    }

    public CriteriaItem(String key, Object val,CriteriaEnum type) {
        this.type = type;
        this.key = key;
        this.val = val;
    }

    public CriteriaEnum getType() {
        return type;
    }

    public void setType(CriteriaEnum type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getVal() {
        return val;
    }

    public void setVal(Object val) {
        this.val = val;
    }
}
